<?php

/**
* frames.php
*
* @version 0.1a
* @copyright 2010 by badboy for BadNova
*/


define('INSIDE'  , true);
define('INSTALL' , false);

$InLogin = false;
// these lines of code are necessary?
$BadNova_Host    = $_SERVER['HTTP_HOST'];
$BadNova_Script  = $_SERVER['SCRIPT_NAME'];
$Uri_Array     = explode('/', $BadNova_Script);

// On vire le script
array_pop($Uri_Array);
$BadNova_URI     = implode('/', $Uri_Array);

$BadNovaRootURL  = "http://". $BadNova_Host ."/". $BadNova_URI ."/";

$badnova_root_path = './';
include($badnova_root_path . 'extension.inc');
include($badnova_root_path . 'common.'.$phpEx);

// start of fix to avoid that one without being be logged to the frames.php
if (!$IsUserChecked)
{
	header('Location: login.php'); 
	die();
}
// end of fix

$parse = $lang;
$parse['ENCODING']  = $langInfos['ENCODING'];
$parse['game_name'] = $game_config['game_name'];

// getting template, parsing and go out
$template = gettemplate('frames');
$html = parsetemplate($template, $parse);
echo $html;

// -----------------------------------------------------------------------------------------------------------
// History version
// 0.1a - Mise au propre
?>